home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / dr2d.lha / README < prev   
Text File  |  1991-11-20  |  2KB  |  41 lines

  1. The files in this archive support the reading and writing
  2. of DR2D, a 2-dimensional structured drawing IFF FORM.  They
  3. are intended to reside in the standard IFF directory structure
  4. created by Commodore.  The new files added are:
  5.  
  6.     iffp/dr2d.h            DR2D chunks/records
  7.     iffp/obj2d.h            DR2D data structures
  8.     modules/dr2dr.c            Read a DR2D FORM
  9.     modules/dr2dw.c            Write a DR2D FORM
  10.     modules/dr2dutil.c        Needed by dr2dr and dr2dw
  11.     apps/DR2DDemo/DR2DDemo.c    Copies a DR2D file to a
  12.                     new name, verifying its
  13.                     structure
  14.  
  15. The changed files are:
  16.  
  17.     Makefile.SAS
  18.     Makefile.Manx
  19.  
  20. You will need to replace the standard Commodore makefiles with
  21. these if you want to build.
  22.  
  23. Note: these files have not been tested with Manx, so be careful.
  24. Note also that these files make heavy use of function prototypes
  25. without any #ifdefs around them; this is my little way of encouraging
  26. people to upgrade their compilers :-)  Besides, I think that those
  27. #ifdefs completely defeat the purpose of function prototypes.
  28.  
  29. The file apps/DR2DDemo/DR2DDemo is the compiled version of DR2DDemo.c.
  30. Note that it was compiled with the FLT_COORD #ifdef turned OFF; that
  31. means that it converts IEEE single-precision floats to scaled integers
  32. when it reads, and converts them back before it writes.  This is done
  33. without using any floating point libraries: see ieee2flt and flt2ieee
  34. in dr2dutil.c.  If you don't want to do this, just #define FLT_COORD
  35. and rebuild everything (you will need to add a -Lm or -lm to the
  36. Makefile for this to work).
  37.  
  38. Ross Cunniff
  39. Stylus, Inc.
  40. November 21, 1991
  41.